package com.sanjin.blockchain.common.encryptdecrypt;

import com.sanjin.blockchain.common.exceptions.UnsupportedDecryptException;

/**
 * @author: jiangxch
 * @date: 2019/12/6 9:16
 */
public interface EncryptDecrypt {

    /**
     * 加密
     * @return
     */
    byte[] encrypt(byte[] bytes);

    /**
     * 解密
     * @return
     */
    byte[] decrypt(byte[] bytes) throws UnsupportedDecryptException;
}
